Metric: mc_nemar
McNemar = (SE - SP)**2 / SE + SP
predictions1, predictions2, references(=ground truth)を渡す
The McNemar test is a non-parametric test, so it has relatively few assumptions (basically only that the observations are independent). It should be used to analyze paired nominal data only.
対となる名目データ限定
scipy.stats.chi2で計算
2022/10時点ではmlxtend実装より機能が少ない(correctedとexect p-valueが非対応)